package com.cq.hd.member.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商家充值申请记录
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_business_recharge_apply")
@ApiModel(value = "TbBusinessRechargeApplyPo对象", description = "商家充值申请记录")
public class TbBusinessRechargeApplyPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "申请单号")
    @TableField("apply_no")
    private String applyNo;

    @ApiModelProperty(value = "商家id")
    @TableField("business_id")
    private Long businessId;

    @ApiModelProperty(value = "打款单号")
    @TableField("payment_no")
    private String paymentNo;

    @ApiModelProperty(value = "打款金额")
    @TableField("trade_amt")
    private BigDecimal tradeAmt;

    @ApiModelProperty(value = "打款凭证")
    @TableField("payment_image")
    private String paymentImage;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "状态（1-待审核，2-审核失败，3-审核成功）")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "审核失败原因")
    @TableField("refuse_reason")
    private String refuseReason;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "审核时间")
    @TableField("audit_time")
    private LocalDateTime auditTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
